package com.wrupple.vegetate.shared;

import com.google.web.bindery.requestfactory.shared.EntityProxy;
import com.google.web.bindery.requestfactory.shared.InstanceRequest;
import com.google.web.bindery.requestfactory.shared.Request;

public interface CatalogEntryDAO<T extends EntityProxy> {

	//create & update
	InstanceRequest<T, Void> persist();
	
	//read
	Request<Long> count();
	
	Request<T> read(String id);
	
	//delete

	InstanceRequest<T, Void> delete();

}